#ifndef FONT_H
#define FONT_H

#include <stdio.h>
#include <stdarg.h>

#define FONT_FILENAME "Data/Font.tga"

class GLFont
{
public:

	enum enumFontSet{GLFONT_NORMAL,GLFONT_ITALIC};

	GLFont(const char* fontname=FONT_FILENAME);
	~GLFont();

	bool BuildFont(const char* fontname=FONT_FILENAME);
	void PrintBegin();
	void Print(int x,int y,enumFontSet set,char *text,...);
	void PrintEnd();
	void KillFont();


	GLuint	m_texture;		// the font texture
	GLuint	m_base;			// the base of the display lists ( 256 for all letters)
	int	m_width;		// width of each letter
	int	m_height;		// height ....
	int m_viewWidth;
	int m_viewHeight;
	int	m_spacing;		// spacing of ...

	bool	m_initialized;
};


#endif